package com.lam.system.entity.imp;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.lam.common.components.dict.annotation.Dict;
import com.lam.common.validate.annotation.DictValid;

/**
 * 表唯一配置导入对象 SysTableUniqueImp
 * 
 * @author admin
 * @date 2022-09-30
 */

@ColumnWidth(30)
public class SysTableUniqueImp {

    /** 唯一编码 */
    @ExcelProperty("唯一编码")
    private String code;
    
    /** 表名 */
    @ExcelProperty("表名")
    private String tableName;
    
    /** 唯一字段,多个用逗号分隔 */
    @ExcelProperty("唯一字段,多个用逗号分隔")
    private String uniqueField;
    
    /** 查询条件字段 */
    @ExcelProperty("查询条件字段")
    private String queryField;
    
    /** 查询条件 */
    @ExcelProperty("查询条件")
    private String conditionSql;
    
    /** 状态 */
    @ExcelProperty("状态")
    @DictValid(message = "无效的状态值")
    @Dict(dictCode = "status_type", reverse = true)
    private String statusDictText;
    
    /** 类型 */
    @ExcelProperty("类型")
    @DictValid(message = "无效的类型")
    @Dict(dictCode = "config_type", reverse = true)
    private String typeDictText;
    
    /** 备注 */
    @ExcelProperty("备注")
    private String remark;
    
    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    } 
    
    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableName() {
        return tableName;
    } 
    
    public void setUniqueField(String uniqueField) {
        this.uniqueField = uniqueField;
    }

    public String getUniqueField() {
        return uniqueField;
    } 
    
    public void setQueryField(String queryField) {
        this.queryField = queryField;
    }

    public String getQueryField() {
        return queryField;
    } 
    
    public void setConditionSql(String conditionSql) {
        this.conditionSql = conditionSql;
    }

    public String getConditionSql() {
        return conditionSql;
    } 
    
    public void setStatusDictText(String statusDictText) {
        this.statusDictText = statusDictText;
    }

    public String getStatusDictText() {
        return statusDictText;
    } 
    
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return remark;
    }

	public String getTypeDictText() {
		return typeDictText;
	}

	public void setTypeDictText(String typeDictText) {
		this.typeDictText = typeDictText;
	} 
    

}
